from pathlib import Path

from util.yaml import get_yaml_data

# 项目根目录 (绝对路径)
BASE_DIR = Path.resolve(Path(__file__)).parent.parent

# 静态文件根目录
STATIC_ROOT = BASE_DIR / "resource" / "static"

# 静态文件根地址(URL)
STATIC_URL = "/static"

# 全局配置
CONFIG = get_yaml_data(BASE_DIR / "config" / "develop.yaml")
# CONFIG = get_yaml_data(BASE_DIR / "config" / "product.yaml")
